package br.ufpe.cin.msc.jrsj2.recommender.persistence.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Program {

	@Id
	private int id;

	@Column(nullable = false, length = 255)
	private String title;

	@Column(nullable = true, length = 255)
	private String genre;

	@Column(nullable = true, columnDefinition = "TEXT")
	private String synopsis;

	@OneToMany
	private List<Profile> clients;

	public Program(int id, String title, String genre, String synopsis) {
		this.id = id;
		this.title = title;
		this.genre = genre;
		this.synopsis = synopsis;
	}

	public Program() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

	public String getSynopsis() {
		return synopsis;
	}

	public void setSynopsis(String synopsis) {
		this.synopsis = synopsis;
	}

	public void setClients(List<Profile> clients) {
		this.clients = clients;
	}

	public List<Profile> getClients() {
		return clients;
	}

}
